package com.wiretrack.circuit;
import java.awt.Color;

import javax.swing.JLabel;

import org.apache.log4j.Logger;

public class SwingLabel implements Label
{
	private static Logger log = Logger.getLogger(SwingLabel.class.getName());
	private JLabel label;
	private String text;

	public SwingLabel(JLabel label)
	{
		this.label = label;
	}
	
	@Override
	public void setText(String text)
	{
		label.setText(text);
		this.text = text;
	}

	@Override
	public void setColor(Color color)
	{
		label.setForeground(color);
	}

	@Override
	public void setForeground(Color color)
	{
		label.setForeground(color);
	}

	@Override
	public String getText()
	{
		return text;
	}
}
